home *** CD-ROM | disk | FTP | other *** search
- Path: news.NetVision.net.il!news
- From: iti@Jerusalem.netvision.net.il
- Newsgroups: comp.os.ms-windows.programmer.tools.mfc,comp.os.ms-windows.apps.compatibility.win95,comp.lang.c++
- Subject: HELP !!! Memory - Allocation
- Date: Tue, 23 Jan 96 16:29:28 PDT
- Organization: NetVision LTD.
- Message-ID: <NEWTNews.751.822443462.Postmaster@Jerusalem.netvision.net.il>
- NNTP-Posting-Host: ts2cp10.netvision.net.il
- Mime-Version: 1.0
- Content-Type: TEXT/PLAIN; charset=US-ASCII
- X-Newsreader: NEWTNews & Chameleon -- TCP/IP for MS Windows from NetManage
-
-
-
- I am using Visual C++ to write a Windows Application - and I am having
- a memory problem. I want to dynamically allocate "nTemp" bytes of memory
- to read in a char string, or the most memory available up to "nTemp"
- bytes.
-
- My questions being:
- 1. How can I most efficiantly do this?
- 2. Should I use
- -> pChar = (char*) malloc(nTemp); Or
- -> pChar = new char[nTemp];
-
- Please send any advice you have for me to my EMail address:
- iti@netvision.net.il
-
- Thanks
- Yaakov
-
-
-